﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Helper;

namespace Services.BusinessRules
{
   public class ValidateID:BusinessObject
    {
        long Data;
        string NameEN;
        string NameVN;
       public ValidateID(string NameVn, string NameEN, long ID)
       {
           this.Data = ID;
           this.NameVN = NameVn;
           this.NameEN = NameEN;
           AddValidate(Check());
       }
       string Check()
       {

           if (Data <= 0)
           {
               if (ValueDefine.Lang == ValueDefine.Language.VN)
               {
                   return NameVN + " " + ErrorCodeVN.NotEmty;
               }
               else
               {
                   return NameEN + " " + ErrorCodeEN.NotEmty;
               }
           }
           return null;
       }
             
    }
}
